# 遍历key
heros = {'及时雨':'宋江','玉麒麟':'卢俊义','花和尚':'鲁智深','母夜叉':'孙二娘'}
# keys = heros.keys()
# for key in keys:
#     print(key)

# 遍历value
# values = heros.values()
# for value in values:
#     print(value)

# 遍历item
# items = heros.items()
# print(items)
# for item in items:
#     print(item)

# 遍历 key-value
items = heros.items()
print(items)
for key,value in items:
    print(f'{key}->{value}')